package net.wangds.utils;

import net.wangds.log.helper.LogHelper;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

public class UrlEncoderUtils {

    public static String encode(String input){
        try {
            return URLEncoder.encode(input, "UTF8");
        } catch (UnsupportedEncodingException e) {
            LogHelper.error(e);
        }
        return input;
    }

}
